package csel.model.entity;

import csel.model.CharacterStats;
import csel.model.items.TakeableItem;
import csel.model.items.UseableItem;
import csel.model.items.EquippableItem;

public class Tait extends NonPlayerCharacter
{
	private static final long serialVersionUID = 1L;
	public Tait(Occupation occupation)
	{
		super(occupation, "Tait","witty banter here");
		setFlexBucks(1000000);
	}
	
	public int getBuyPrice(Character c, TakeableItem ti)
	{
		int effectiveBargaining = c.getCharacterStat(CharacterStats.Bargaining)-this.getCharacterStat(CharacterStats.Bargaining);
		return (int)(ti.getFlexPrice() * (100.0 - effectiveBargaining)/100);
	}
	
	public String talk(Character c)
	{
		return "Yo man I'm Tait";
	}
	@Override
	public void init()
	{
		super.init();
		
	}

	@Override
	public int getSellPrice(Character c, TakeableItem ti)
	{
		int effectiveBargaining = c.getCharacterStat(CharacterStats.Bargaining)-this.getCharacterStat(CharacterStats.Bargaining);
		return (int)(ti.getFlexPrice() * 100/(100.0 - effectiveBargaining));
	}
}